\(\int \frac {(d x)^m}{(a+b \log (c x^n))^3} \, dx\) [155]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [F]
   Fricas [B] (verification not implemented)
   Sympy [F]
   Maxima [F]
   Giac [F]
   Mupad [F(-1)]

Optimal result

Integrand size = 18, antiderivative size = 142 \[ \int \frac {(d x)^m}{\left (a+b \log \left (c x^n\right )\right )^3} \, dx=\frac {e^{-\frac {a (1+m)}{b n}} (1+m)^2 (d x)^{1+m} \left (c x^n\right )^{-\frac {1+m}{n}} \operatorname {ExpIntegralEi}\left (\frac {(1+m) \left (a+b \log \left (c x^n\right )\right )}{b n}\right )}{2 b^3 d n^3}-\frac {(d x)^{1+m}}{2 b d n \left (a+b \log \left (c x^n\right )\right )^2}-\frac {(1+m) (d x)^{1+m}}{2 b^2 d n^2 \left (a+b \log \left (c x^n\right )\right )} \]

[Out]

1/2*(1+m)^2*(d*x)^(1+m)*Ei((1+m)*(a+b*ln(c*x^n))/b/n)/b^3/d/exp(a*(1+m)/b/n)/n^3/((c*x^n)^((1+m)/n))-1/2*(d*x)
^(1+m)/b/d/n/(a+b*ln(c*x^n))^2-1/2*(1+m)*(d*x)^(1+m)/b^2/d/n^2/(a+b*ln(c*x^n))

Rubi [A] (verified)

Time = 0.10 (sec) , antiderivative size = 142, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {2343, 2347, 2209} \[ \int \frac {(d x)^m}{\left (a+b \log \left (c x^n\right )\right )^3} \, dx=\frac {(m+1)^2 (d x)^{m+1} e^{-\frac {a (m+1)}{b n}} \left (c x^n\right )^{-\frac {m+1}{n}} \operatorname {ExpIntegralEi}\left (\frac {(m+1) \left (a+b \log \left (c x^n\right )\right )}{b n}\right )}{2 b^3 d n^3}-\frac {(m+1) (d x)^{m+1}}{2 b^2 d n^2 \left (a+b \log \left (c x^n\right )\right )}-\frac {(d x)^{m+1}}{2 b d n \left (a+b \log \left (c x^n\right )\right )^2} \]

[In]

Int[(d*x)^m/(a + b*Log[c*x^n])^3,x]

[Out]

((1 + m)^2*(d*x)^(1 + m)*ExpIntegralEi[((1 + m)*(a + b*Log[c*x^n]))/(b*n)])/(2*b^3*d*E^((a*(1 + m))/(b*n))*n^3
*(c*x^n)^((1 + m)/n)) - (d*x)^(1 + m)/(2*b*d*n*(a + b*Log[c*x^n])^2) - ((1 + m)*(d*x)^(1 + m))/(2*b^2*d*n^2*(a
 + b*Log[c*x^n]))

Rule 2209

Int[(F_)^((g_.)*((e_.) + (f_.)*(x_)))/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[(F^(g*(e - c*(f/d)))/d)*ExpInteg
ralEi[f*g*(c + d*x)*(Log[F]/d)], x] /; FreeQ[{F, c, d, e, f, g}, x] &&  !TrueQ[$UseGamma]

Rule 2343

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_)*((d_.)*(x_))^(m_.), x_Symbol] :> Simp[(d*x)^(m + 1)*((a + b*Log
[c*x^n])^(p + 1)/(b*d*n*(p + 1))), x] - Dist[(m + 1)/(b*n*(p + 1)), Int[(d*x)^m*(a + b*Log[c*x^n])^(p + 1), x]
, x] /; FreeQ[{a, b, c, d, m, n}, x] && NeQ[m, -1] && LtQ[p, -1]

Rule 2347

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_)*((d_.)*(x_))^(m_.), x_Symbol] :> Dist[(d*x)^(m + 1)/(d*n*(c*x^n
)^((m + 1)/n)), Subst[Int[E^(((m + 1)/n)*x)*(a + b*x)^p, x], x, Log[c*x^n]], x] /; FreeQ[{a, b, c, d, m, n, p}
, x]

Rubi steps \begin{align*} \text {integral}& = -\frac {(d x)^{1+m}}{2 b d n \left (a+b \log \left (c x^n\right )\right )^2}+\frac {(1+m) \int \frac {(d x)^m}{\left (a+b \log \left (c x^n\right )\right )^2} \, dx}{2 b n} \\ & = -\frac {(d x)^{1+m}}{2 b d n \left (a+b \log \left (c x^n\right )\right )^2}-\frac {(1+m) (d x)^{1+m}}{2 b^2 d n^2 \left (a+b \log \left (c x^n\right )\right )}+\frac {(1+m)^2 \int \frac {(d x)^m}{a+b \log \left (c x^n\right )} \, dx}{2 b^2 n^2} \\ & = -\frac {(d x)^{1+m}}{2 b d n \left (a+b \log \left (c x^n\right )\right )^2}-\frac {(1+m) (d x)^{1+m}}{2 b^2 d n^2 \left (a+b \log \left (c x^n\right )\right )}+\frac {\left ((1+m)^2 (d x)^{1+m} \left (c x^n\right )^{-\frac {1+m}{n}}\right ) \text {Subst}\left (\int \frac {e^{\frac {(1+m) x}{n}}}{a+b x} \, dx,x,\log \left (c x^n\right )\right )}{2 b^2 d n^3} \\ & = \frac {e^{-\frac {a (1+m)}{b n}} (1+m)^2 (d x)^{1+m} \left (c x^n\right )^{-\frac {1+m}{n}} \text {Ei}\left (\frac {(1+m) \left (a+b \log \left (c x^n\right )\right )}{b n}\right )}{2 b^3 d n^3}-\frac {(d x)^{1+m}}{2 b d n \left (a+b \log \left (c x^n\right )\right )^2}-\frac {(1+m) (d x)^{1+m}}{2 b^2 d n^2 \left (a+b \log \left (c x^n\right )\right )} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.24 (sec) , antiderivative size = 113, normalized size of antiderivative = 0.80 \[ \int \frac {(d x)^m}{\left (a+b \log \left (c x^n\right )\right )^3} \, dx=\frac {(d x)^m \left (e^{-\frac {(1+m) \left (a-b n \log (x)+b \log \left (c x^n\right )\right )}{b n}} (1+m)^2 x^{-m} \operatorname {ExpIntegralEi}\left (\frac {(1+m) \left (a+b \log \left (c x^n\right )\right )}{b n}\right )-\frac {b n x \left (a+a m+b n+b (1+m) \log \left (c x^n\right )\right )}{\left (a+b \log \left (c x^n\right )\right )^2}\right )}{2 b^3 n^3} \]

[In]

Integrate[(d*x)^m/(a + b*Log[c*x^n])^3,x]

[Out]

((d*x)^m*(((1 + m)^2*ExpIntegralEi[((1 + m)*(a + b*Log[c*x^n]))/(b*n)])/(E^(((1 + m)*(a - b*n*Log[x] + b*Log[c
*x^n]))/(b*n))*x^m) - (b*n*x*(a + a*m + b*n + b*(1 + m)*Log[c*x^n]))/(a + b*Log[c*x^n])^2))/(2*b^3*n^3)

Maple [F]

\[\int \frac {\left (d x \right )^{m}}{{\left (a +b \ln \left (c \,x^{n}\right )\right )}^{3}}d x\]

[In]

int((d*x)^m/(a+b*ln(c*x^n))^3,x)

[Out]

int((d*x)^m/(a+b*ln(c*x^n))^3,x)

Fricas [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 322 vs. \(2 (136) = 272\).

Time = 0.32 (sec) , antiderivative size = 322, normalized size of antiderivative = 2.27 \[ \int \frac {(d x)^m}{\left (a+b \log \left (c x^n\right )\right )^3} \, dx=\frac {{\left ({\left (b^{2} m^{2} + 2 \, b^{2} m + b^{2}\right )} n^{2} \log \left (x\right )^{2} + a^{2} m^{2} + 2 \, a^{2} m + {\left (b^{2} m^{2} + 2 \, b^{2} m + b^{2}\right )} \log \left (c\right )^{2} + a^{2} + 2 \, {\left (a b m^{2} + 2 \, a b m + a b\right )} \log \left (c\right ) + 2 \, {\left ({\left (b^{2} m^{2} + 2 \, b^{2} m + b^{2}\right )} n \log \left (c\right ) + {\left (a b m^{2} + 2 \, a b m + a b\right )} n\right )} \log \left (x\right )\right )} {\rm Ei}\left (\frac {{\left (b m + b\right )} n \log \left (x\right ) + a m + {\left (b m + b\right )} \log \left (c\right ) + a}{b n}\right ) e^{\left (\frac {b m n \log \left (d\right ) - a m - {\left (b m + b\right )} \log \left (c\right ) - a}{b n}\right )} - {\left ({\left (b^{2} m + b^{2}\right )} n^{2} x \log \left (x\right ) + {\left (b^{2} m + b^{2}\right )} n x \log \left (c\right ) + {\left (b^{2} n^{2} + {\left (a b m + a b\right )} n\right )} x\right )} e^{\left (m \log \left (d\right ) + m \log \left (x\right )\right )}}{2 \, {\left (b^{5} n^{5} \log \left (x\right )^{2} + b^{5} n^{3} \log \left (c\right )^{2} + 2 \, a b^{4} n^{3} \log \left (c\right ) + a^{2} b^{3} n^{3} + 2 \, {\left (b^{5} n^{4} \log \left (c\right ) + a b^{4} n^{4}\right )} \log \left (x\right )\right )}} \]

[In]

integrate((d*x)^m/(a+b*log(c*x^n))^3,x, algorithm="fricas")

[Out]

1/2*(((b^2*m^2 + 2*b^2*m + b^2)*n^2*log(x)^2 + a^2*m^2 + 2*a^2*m + (b^2*m^2 + 2*b^2*m + b^2)*log(c)^2 + a^2 +
2*(a*b*m^2 + 2*a*b*m + a*b)*log(c) + 2*((b^2*m^2 + 2*b^2*m + b^2)*n*log(c) + (a*b*m^2 + 2*a*b*m + a*b)*n)*log(
x))*Ei(((b*m + b)*n*log(x) + a*m + (b*m + b)*log(c) + a)/(b*n))*e^((b*m*n*log(d) - a*m - (b*m + b)*log(c) - a)
/(b*n)) - ((b^2*m + b^2)*n^2*x*log(x) + (b^2*m + b^2)*n*x*log(c) + (b^2*n^2 + (a*b*m + a*b)*n)*x)*e^(m*log(d)
+ m*log(x)))/(b^5*n^5*log(x)^2 + b^5*n^3*log(c)^2 + 2*a*b^4*n^3*log(c) + a^2*b^3*n^3 + 2*(b^5*n^4*log(c) + a*b
^4*n^4)*log(x))

Sympy [F]

\[ \int \frac {(d x)^m}{\left (a+b \log \left (c x^n\right )\right )^3} \, dx=\int \frac {\left (d x\right )^{m}}{\left (a + b \log {\left (c x^{n} \right )}\right )^{3}}\, dx \]

[In]

integrate((d*x)**m/(a+b*ln(c*x**n))**3,x)

[Out]

Integral((d*x)**m/(a + b*log(c*x**n))**3, x)

Maxima [F]

\[ \int \frac {(d x)^m}{\left (a+b \log \left (c x^n\right )\right )^3} \, dx=\int { \frac {\left (d x\right )^{m}}{{\left (b \log \left (c x^{n}\right ) + a\right )}^{3}} \,d x } \]

[In]

integrate((d*x)^m/(a+b*log(c*x^n))^3,x, algorithm="maxima")

[Out]

(m^2 + 2*m + 1)*d^m*integrate(1/2*x^m/(b^3*n^2*log(c) + b^3*n^2*log(x^n) + a*b^2*n^2), x) - 1/2*(b*d^m*(m + 1)
*x*x^m*log(x^n) + (a*d^m*(m + 1) + (d^m*(m + 1)*log(c) + d^m*n)*b)*x*x^m)/(b^4*n^2*log(c)^2 + b^4*n^2*log(x^n)
^2 + 2*a*b^3*n^2*log(c) + a^2*b^2*n^2 + 2*(b^4*n^2*log(c) + a*b^3*n^2)*log(x^n))

Giac [F]

\[ \int \frac {(d x)^m}{\left (a+b \log \left (c x^n\right )\right )^3} \, dx=\int { \frac {\left (d x\right )^{m}}{{\left (b \log \left (c x^{n}\right ) + a\right )}^{3}} \,d x } \]

[In]

integrate((d*x)^m/(a+b*log(c*x^n))^3,x, algorithm="giac")

[Out]

integrate((d*x)^m/(b*log(c*x^n) + a)^3, x)

Mupad [F(-1)]

Timed out. \[ \int \frac {(d x)^m}{\left (a+b \log \left (c x^n\right )\right )^3} \, dx=\int \frac {{\left (d\,x\right )}^m}{{\left (a+b\,\ln \left (c\,x^n\right )\right )}^3} \,d x \]

[In]

int((d*x)^m/(a + b*log(c*x^n))^3,x)

[Out]

int((d*x)^m/(a + b*log(c*x^n))^3, x)